notebook: make sure the allocation keeps track of the tab curvature
authorCosimo Cecchi <cosimoc@gnome.org>
Sat, 5 Mar 2011 08:05:54 +0000 (03:05 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Sun, 6 Mar 2011 19:48:09 +0000 (14:48 -0500)
This was a genuine typo, because "padding" was calculated but unused in
this branch of the code.

gtk/gtknotebook.c

index edcd68488d5b3048f3a8783a42b6ef1f2a622d66..0baa3ed55eef2dd83039dedd24097e3574f4a462 100644 (file)
@@ -6051,10 +6051,10 @@ gtk_notebook_page_allocate (GtkNotebook     *notebook,
       padding = tab_curvature + focus_width + priv->tab_hborder;
       if (page->fill)
         {
-          child_allocation.x = tab_padding.left + focus_width + priv->tab_hborder;
+          child_allocation.x = tab_padding.left + padding;
           child_allocation.width = MAX (1, (page->allocation.width -
                                             tab_padding.left - tab_padding.right -
-                                            2 * (focus_width + priv->tab_hborder)));
+                                            2 * (padding)));
           child_allocation.x += page->allocation.x;
         }
       else